class Person:
    """人"""

    def __init__(self, name, age):
        self.name = name
        self.age = age
    
    def eat(self):
        print(f'{self.name}正在吃饭.')
    
    def sleep(self):
        print(f'{self.name}正在睡觉.')
    
    def __str__(self):
        return f'{self.name}的年龄是{self.age}岁.'
    
    def __repr__(self):
        return f'Person({self.name}, {self.age})'

